package com.seecen.utils;



public enum ResultCode {
    SUCCESS(200, "success"),
    USERNAME_ERROR(501, "usernameError"),
    PASSWORD_ERROR(503, "passwordError"),
    NOTLOGIN(504, "notLogin"),
    USERNAME_USED(505, "usernameUsed"),
    COMPANY_NOT_FOUND(551, "companyNotFound"),
    SUBMISSION_FAILED(552, "提交失败"),
    DATA_NOT_FOUND(510,"查询数据为空"),
    CAPTCHA_ERROR(580, "验证码错误"),
    DATABASE_ERROR(530, "databaseError"),
    TITLE_DATE_NOT_FOUND(591,"titleDateNotFound")
    ;

    private Integer code;
    private String message;

    private ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
